﻿using System;
using Wicresoft.RDW.Presentation;

namespace Wicresoft.RDW.Announcement
{
    public partial class Detail : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var announcement = AnnouncementPresent.GetById(Id);
                if (announcement != null)
                {
                    this.ltlAnnoucementSubject.Text = Server.HtmlDecode(announcement.Subject);
                    this.lblAnnoucementBody.Text = Server.HtmlDecode(announcement.Body);
                }
            }
        }
    }
}